<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>{$cateInfo.cname}</title>
	<link rel="stylesheet" type="text/less" href="__TEMPLATE__/style/main.less" />
	<link rel="stylesheet" href="__TEMPLATE__/style/bootstrap.min.css" />
	<link rel="stylesheet" href="__TEMPLATE__/style/font-awesome.min.css">
	<script type="text/javascript" src="__TEMPLATE__/js/less-1.7.5.min.js"></script>
	<script type="text/javascript" src="__TEMPLATE__/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="__TEMPLATE__/js/main.js"></script>
	<link href="__TEMPLATE__/style/star-rating.css" media="all" rel="stylesheet" type="text/css"/>
	<hdjs>	
</head>
<body>
<!-- 头部开始 -->
<include file="__TEMPLATE__/head.html"/>
<!-- 头部结束 -->
<!-- 内页位置开始 -->
<div id="postion">
	<a href="__ROOT__">首页</a>/
	<a href="{|U:'List/index',array('cid'=>$cateInfo['cid'])}">{$cateInfo.cname}</a>/
</div>
<!-- 内页位置结束 -->
<!-- 产品可选菜单开始 -->
<!-- //老师所讲************************* -->
<div id="chexmenu">
	<h1>{$cateInfo.cname}</h1>
	<foreach from='$typeAttr' key="$k" value='$v'>
		<?php 
			$temp = $param;
			$temp[$k] = 0;
		 ?>
		<div class="category">
			<span>{$v.tname}:</span>
			<a href="{|U:'index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp))}" <if value="$param[$k] eq 0">class="cur"</if>>不限</a>
			<foreach from="$v['option']" key='$key' value="$value">
				<?php 
					$temp[$k] = $value['gaid'];
				 ?>
				<a href="{|U:'index',array('cid'=>$_GET['cid'],'param'=>implode('_',$temp))}" <if value="$param[$k] eq $value['gaid']">class="cur"</if>>{$value.gtvalue}</a>
				<span>|</span>
			</foreach>
		</div>
	</foreach>
	<div class="chexbox">
		<div class="left">
			<a href="{|U:'List/index',array('cid'=>$_GET['cid'],'param'=>implode('_', $param),'new'=>'1')}" <if value="$_GET['new'] eq 1">class="cur"</if>  >最新</a>
			<span>|</span>
			<a href="{|U:'List/index',array('cid'=>$_GET['cid'],'param'=>implode('_', $param),'price'=>'1')}" <if value="$_GET['price'] eq 1">class="cur"</if> >价格从高到低</a>
			<span>|</span>
			<a href="{|U:'List/index',array('cid'=>$_GET['cid'],'param'=>implode('_', $param),'price'=>'2')}" <if value="$_GET['price'] eq 2">class="cur"</if>>价格从低到高</a>
			<span>|</span>
			<a href="{|U:'List/index',array('cid'=>$_GET['cid'],'param'=>implode('_', $param),'click'=>'1')}" <if value="$_GET['click'] eq 1">class="cur"</if>>关注度</a>
		</div>
		<div class="right">
		<form action="">
			<!-- <input type="checkbox" />仅显示特惠商品 -->
			<input type="checkbox" />仅显示有货商品
		</form>
			
		</div>
	</div>
</div>
<!-- //老师所讲************************* -->
<!-- 产品可选菜单结束 -->
<!-- 产品列表开始 -->
<div id="goods_list">
	<ul>
		<foreach from="$listData" value="$v">
			<a href="{|U:'Goods/index',array('gid'=>$v['gid'])}" target="_blank">
				<li>
					<div class="box-over">
					<p class="img"><img src="__ROOT__/{$v.pic}" alt="" width="220" height="220" /></p>
					<p class="title"><a href="{|U:'Goods/index',array('gid'=>$v['gid'])}" target="_blank">{$v.gname}</a></p>
					<p class="price">{$v.shopprice}元</p>
					<p class="star">
					<div data-content="" class="rating-container rating-gly-star">
						<div style="width:{$v.rank}%;" data-content="" class="rating-stars">
							
						</div>
					</div>
					{$v.cnum}人评价</p>
					<p class="list_cart">
						<a class="cart_one" href="{|U:'Goods/index',array('gid'=>$v['gid'])}"><i class="fa fa-plus"></i>了解详情</a>
						<a class="store" id='store' gid='{$v.gid}' href="javascript:;"><i class="fa fa-heart"></i> 收藏</a>
					</p>	
					</div>
				</li>
			</a>
		</foreach>
	</ul>
</div>
<div id="page">
	{$page}
</div>
<!-- 产品列表结束 -->
<!-- // 服务样式开始 -->
<include file="__TEMPLATE__/footer.html"/>
<!-- // 服务样式结束 -->
</body>
</html>